<?php
/**
 * An extension of the Session object for specific namespaces.
 */
class Session_Namespace extends Session {
    /**
     * The constructor.
     * @param string $namespace
     * @throws Session_Exception
     */
	public function __construct($namespace) {
		if(!empty($namespace)) {
			$this->namespace = $namespace;
		} else {
			throw new Session_Exception('Namespace not defined.');
		}
		parent::__construct();
	}
}
?>